define(["jquery", "easy-admin", 'vue','xmSelect'], function ($, ea,Vue) {
    var form = layui.form;


    var Controller = {
        index: function () {

            var app = new Vue({
                el: '#app'});
            ea.listen();

        },applogin  : function () {



            ea.listen();

        },order: function () {


            ea.listen();

        },score: function () {


            ea.request.get({
                url: '../admin/ajax/getShouPayments',
                prefix: true,
            }, function (res) {
                if(res.code==1){
                    var json=json2Select(res.data);
                    var xmSelects = document.querySelectorAll("[data-xmSelect]");
                    if (xmSelects.length > 0) {

                        $.each(xmSelects, function (i, v) {
                            var arr=[];
                            var str=$(this).data('value');
                            if(str!=''){
                                arr=str.toString().split(",");
                            }
                            var xm=xmSelect.render({
                                el:this,
                                name:$(this).attr('data-xmSelect'),
                                data:json
                            });
                            if(arr.length !==0 ){
                                xm.setValue(arr);
                            }

                        });
                    }
                }
            });
            ea.listen();

        },comment: function () {



            ea.listen();

        }
    };

    return Controller;
});